﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mododor.JsonModels
{
    public class ContractInfoJsonSearchModel
    {

        public class Rootobject
        {
            public int status { get; set; }
            public string msg { get; set; }
            public Re[] res { get; set; }
        }

        public class Re
        {
            public long idCompany { get; set; }
            public string companyName { get; set; }
            public Contract[] contracts { get; set; }
        }

        public class Contract
        {
            public long idContract { get; set; }
            public long idContractInput { get; set; }
            public string contractName { get; set; }
            public string contractContent { get; set; }
            public DateTime contractStartDate { get; set; }
            public DateTime contractEndDate { get; set; }
            public bool ContractActive { get; set; }
            public Contracttype contractType { get; set; }
            public Clientmodel[] clientModels { get; set; }
        }

        public class Contracttype
        {
            public long idContractType { get; set; }
            public string contractTypeName { get; set; }
            public string contractTypeDescription { get; set; }
        }

        public class Clientmodel
        {
            public long idClient { get; set; }
            public string clientName { get; set; }
        }

    }
}
